﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fastyou.DesignPattern.Decorator
{
    public class DecoFan:IFan
    {
        IFan _fan;
        public DecoFan(IFan fan)
        {
            _fan = fan;
        }

        #region IFan Members

        public void On()
        {
            Console.WriteLine("Decofan On");
            _fan.On();
        }

        public void Off()
        {
            Console.WriteLine("Decofan Off");
            _fan.Off();
        }

        #endregion
    }
}
